/*
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

:root {
  --infer-purple: #6223b0;
  --ifm-color-primary: var(--infer-purple);
  --ifm-color-primary-dark: #58209e;
  --ifm-color-primary-darker: #4e1c8d;
  --ifm-color-primary-darkest: #45197b;
  --ifm-color-primary-light: #7239b8;
  --ifm-color-primary-lighter: #814fc0;
  --ifm-color-primary-lightest: #9165c8;

  --ifm-code-font-size: 95%;
}

[data-theme='dark'] {
  --ifm-color-primary: var(--ifm-color-primary-lightest);
}

.large-math {
  vertical-align: text-bottom;
}

.hero {
  --ifm-hero-text-color: var(--ifm-color-gray-0);
  --ifm-hero-background-color: var(--infer-purple);
}

/* Announcement banner */

:root {
  --docusaurus-announcement-bar-height: auto !important;
}

div[class^="announcementBarContent"] {
  line-height: 40px;
  font-size: 20px;
  font-weight: bold;
  padding: 8px 30px;
}

div[class^="announcementBarContent"] a {
  text-decoration: underline;
  display: inline-block;
  color: var(--ifm-color-primary-lightest) !important;
}

div[class^="announcementBarContent"] a:hover {
  color: var(--brand) !important;
}

@media only screen and (max-width: 768px) {
  div[class^="announcementBarContent"] {
    font-size: 18px;
  }
}

@media only screen and (max-width: 500px) {
  div[class^="announcementBarContent"] {
    font-size: 15px;
    line-height: 22px;
    padding: 6px 30px;
  }
}
